<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">  
<head>
<meta charset="UTF-8">
<title>测试</title>
<link rel="stylesheet" type="text/css" href="frame/layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="frame/static/css/style.css" />
<link rel="stylesheet" type="text/css" href="frame/static/image/code.png" />
</head>
<script type="text/javascript"  src="frame/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['form'], function () {

        // 操作对象
        var form = layui.form
                , $ = layui.jquery;

        // you code ...


    });
</script>
<body>
<div class="login-main">
    <header class="layui-elip">后台登录</header>
<form class="layui-form" method="post" action="/login">
<!--     用户名：<input name="username"><br>
    密码：<input name="password"><br>
    <input type="submit" value="登录"> -->
     <div class="layui-input-inline">
            <input type="text" name="username" required lay-verify="required" placeholder="邮箱" autocomplete="off"
                   class="layui-input">
        </div>
        <div class="layui-input-inline">
            <input type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off"
                   class="layui-input">
        </div>
        <div class="layui-input-inline login-btn">
            <button type="submit" class="layui-btn">登录</button>
        </div>
</form>
<div style="text-align:center;"><#if message!="">  
${message}
</#if> 
</div>
</div>
 
</body>
</html>